/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao.ds;
import java.sql.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Haybert
 */
public class AccesoDB {

    public AccesoDB() {
        
    }
    public Connection getConexion(){
        Connection cn = null;
        try {
            Class.forName("com.mysql.jdbc.Driver").newInstance();
            cn= DriverManager.getConnection("jdbc:mysql://localhost:3306/dbcolegio","root","");
        }catch (SQLException ex){
            
        } 
        catch (Exception e) {
        }
        return cn;
    }
    
}
